package com.yichuang.security.quickstarts.ample.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class LoginController {

    @GetMapping("/")
    @ResponseBody
    public String welcome() {
        return "hello world"; // 返回视图名称，指向登录模板
    }
    @GetMapping("/login/c")
    public String login() {
        return "login"; // 返回视图名称，指向登录模板
    }
}
